package br.usp.ime.controllers;

import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.usp.ime.components.WebUser;

@Resource
public class IndexController {
    
    private final WebUser webUser;
    private final Result result;
    
    public IndexController(WebUser webUser, Result result){
        this.webUser = webUser;
        this.result = result;
    }
    
    @Get("/")
    public void index(){
        result.include(webUser);
    }

    @Get("/about")
    public void about(){
        result.include(webUser);
    }
    
    @Get("/help")
    public void help(){
        result.include(webUser);
    }
    
    @Get("/contact")
    public void contact(){
        result.include(webUser);
    }
    

}
